home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6976 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  2.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 79 73 2e 61 6d 69 | 67 61 2e 70 72 6f 67 72 |.sys.ami|ga.progr|
|00000020| 61 6d 6d 65 72 0a 50 61 | 74 68 3a 20 6e 65 74 63 |ammer.Pa|th: netc|
|00000030| 6f 6d 2e 63 6f 6d 21 77 | 75 6c 66 72 61 65 64 0a |om.com!w|ulfraed.|
|00000040| 46 72 6f 6d 3a 20 77 75 | 6c 66 72 61 65 64 40 6b |From: wu|lfraed@k|
|00000050| 64 36 6d 6f 67 2e 6e 65 | 74 63 6f 6d 2e 63 6f 6d |d6mog.ne|tcom.com|
|00000060| 20 28 44 65 6e 6e 69 73 | 20 4c 65 65 20 42 69 65 | (Dennis| Lee Bie|
|00000070| 62 65 72 29 0a 53 75 62 | 6a 65 63 74 3a 20 52 65 |ber).Sub|ject: Re|
|00000080| 3a 20 4d 65 73 73 61 67 | 65 73 20 76 73 2e 20 53 |: Messag|es vs. S|
|00000090| 65 6d 61 70 68 6f 72 65 | 73 20 66 6f 72 20 65 78 |emaphore|s for ex|
|000000a0| 74 65 72 6e 61 6c 20 63 | 6c 6f 63 6b 69 6e 67 0a |ternal c|locking.|
|000000b0| 43 6f 6e 74 65 6e 74 2d | 54 79 70 65 3a 20 74 65 |Content-|Type: te|
|000000c0| 78 74 2f 70 6c 61 69 6e | 3b 20 63 68 61 72 73 65 |xt/plain|; charse|
|000000d0| 74 3d 69 73 6f 2d 38 38 | 35 39 2d 31 0a 4d 65 73 |t=iso-88|59-1.Mes|
|000000e0| 73 61 67 65 2d 49 44 3a | 20 3c 77 75 6c 66 72 61 |sage-ID:| <wulfra|
|000000f0| 65 64 44 70 45 45 74 39 | 2e 45 39 37 40 6e 65 74 |edDpEEt9|.E97@net|
|00000100| 63 6f 6d 2e 63 6f 6d 3e | 0a 53 65 6e 64 65 72 3a |com.com>|.Sender:|
|00000110| 20 77 75 6c 66 72 61 65 | 64 40 6e 65 74 63 6f 6d | wulfrae|d@netcom|
|00000120| 31 38 2e 6e 65 74 63 6f | 6d 2e 63 6f 6d 0a 52 65 |18.netco|m.com.Re|
|00000130| 70 6c 79 2d 54 6f 3a 20 | 77 75 6c 66 72 61 65 64 |ply-To: |wulfraed|
|00000140| 40 6e 65 74 63 6f 6d 2e | 63 6f 6d 0a 43 6f 6e 74 |@netcom.|com.Cont|
|00000150| 65 6e 74 2d 54 72 61 6e | 73 66 65 72 2d 45 6e 63 |ent-Tran|sfer-Enc|
|00000160| 6f 64 69 6e 67 3a 20 38 | 62 69 74 0a 4f 72 67 61 |oding: 8|bit.Orga|
|00000170| 6e 69 7a 61 74 69 6f 6e | 3a 20 49 49 53 53 20 45 |nization|: IISS E|
|00000180| 6c 75 73 69 76 65 20 55 | 6e 69 63 6f 72 6e 20 28 |lusive U|nicorn (|
|00000190| 50 72 69 76 61 74 65 20 | 41 6d 69 67 61 20 53 79 |Private |Amiga Sy|
|000001a0| 73 74 65 6d 29 0a 58 2d | 4e 65 77 73 73 6f 66 74 |stem).X-|Newssoft|
|000001b0| 77 61 72 65 3a 20 47 52 | 6e 20 32 2e 31 20 46 65 |ware: GR|n 2.1 Fe|
|000001c0| 62 20 31 39 2c 20 31 39 | 39 34 0a 52 65 66 65 72 |b 19, 19|94.Refer|
|000001d0| 65 6e 63 65 73 3a 20 3c | 34 6a 75 33 34 39 24 72 |ences: <|4ju349$r|
|000001e0| 31 65 40 73 70 61 72 6b | 79 2e 6e 61 76 73 65 61 |1e@spark|y.navsea|
|000001f0| 2e 6e 61 76 79 2e 6d 69 | 6c 3e 20 3c 33 31 36 35 |.navy.mi|l> <3165|
|00000200| 34 46 45 36 2e 35 45 32 | 42 40 6e 65 74 76 69 73 |4FE6.5E2|B@netvis|
|00000210| 69 6f 6e 2e 6e 65 74 2e | 69 6c 3e 0a 4d 69 6d 65 |ion.net.|il>.Mime|
|00000220| 2d 56 65 72 73 69 6f 6e | 3a 20 31 2e 30 0a 44 61 |-Version|: 1.0.Da|
|00000230| 74 65 3a 20 46 72 69 2c | 20 35 20 41 70 72 20 31 |te: Fri,| 5 Apr 1|
|00000240| 39 39 36 20 31 36 3a 35 | 31 3a 30 38 20 47 4d 54 |996 16:5|1:08 GMT|
|00000250| 0a 0a 0a 49 6e 20 61 72 | 74 69 63 6c 65 20 3c 33 |...In ar|ticle <3|
|00000260| 31 36 35 34 46 45 36 2e | 35 45 32 42 40 6e 65 74 |1654FE6.|5E2B@net|
|00000270| 76 69 73 69 6f 6e 2e 6e | 65 74 2e 69 6c 3e 20 4a |vision.n|et.il> J|
|00000280| 61 63 6b 20 3c 61 76 69 | 6c 65 76 40 6e 65 74 76 |ack <avi|lev@netv|
|00000290| 69 73 69 6f 6e 2e 6e 65 | 74 2e 69 6c 3e 20 77 72 |ision.ne|t.il> wr|
|000002a0| 69 74 65 73 3a 0a 20 3e | 20 41 6c 65 78 20 4d 61 |ites:. >| Alex Ma|
|000002b0| 74 75 6c 69 63 68 20 30 | 33 54 31 20 36 30 32 2d |tulich 0|3T1 602-|
|000002c0| 36 36 39 31 20 77 72 6f | 74 65 3a 0a 20 3e 20 3e |6691 wro|te:. > >|
|000002d0| 20 0a 20 3e 20 3e 20 49 | 20 61 6d 20 77 6f 6e 64 | . > > I| am wond|
|000002e0| 65 72 69 6e 67 20 77 68 | 61 74 20 69 73 20 74 68 |ering wh|at is th|
|000002f0| 65 20 6d 6f 73 74 20 65 | 66 66 69 63 69 65 6e 74 |e most e|fficient|
|00000300| 20 77 61 79 20 66 6f 72 | 20 6f 6e 65 20 74 61 73 | way for| one tas|
|00000310| 6b 20 74 6f 20 6d 61 6b | 65 20 64 61 74 61 0a 20 |k to mak|e data. |
|00000320| 3e 20 3e 20 61 76 61 69 | 6c 61 62 6c 65 20 74 6f |> > avai|lable to|
|00000330| 20 61 6e 6f 74 68 65 72 | 20 74 61 73 6b 2e 20 20 | another| task. |
|00000340| 49 20 63 61 6e 20 64 6f | 20 74 68 69 73 20 62 79 |I can do| this by|
|00000350| 20 70 61 73 73 69 6e 67 | 20 6d 65 73 73 61 67 65 | passing| message|
|00000360| 73 2c 20 6f 72 20 62 79 | 0a 20 3e 20 3e 20 73 65 |s, or by|. > > se|
|00000370| 74 74 69 6e 67 20 75 70 | 20 61 20 73 65 6d 61 70 |tting up| a semap|
|00000380| 68 6f 72 65 20 74 6f 20 | 70 72 6f 76 69 64 65 20 |hore to |provide |
|00000390| 61 20 63 6f 6d 6d 6f 6e | 20 61 72 65 61 20 6f 66 |a common| area of|
|000003a0| 20 6d 65 6d 6f 72 79 20 | 61 63 63 65 73 73 69 62 | memory |accessib|
|000003b0| 6c 65 20 62 79 0a 20 3e | 20 3e 20 62 6f 74 68 20 |le by. >| > both |
|000003c0| 74 61 73 6b 73 2e 0a 20 | 3e 20 3e 20 79 6f 75 27 |tasks.. |> > you'|
|000003d0| 6c 6c 20 61 6c 77 61 79 | 73 20 68 61 76 65 20 73 |ll alway|s have s|
|000003e0| 6f 6d 65 20 61 6d 6f 75 | 6e 74 20 6f 66 20 6f 76 |ome amou|nt of ov|
|000003f0| 65 72 68 65 61 64 20 69 | 66 20 79 6f 75 20 75 73 |erhead i|f you us|
|00000400| 65 20 73 79 73 74 65 6d | 20 66 75 6e 63 74 69 6f |e system| functio|
|00000410| 6e 73 2e 20 62 75 74 2c | 0a 20 3e 20 69 66 20 79 |ns. but,|. > if y|
|00000420| 6f 75 20 6e 65 65 64 20 | 72 65 61 6c 2d 74 69 6d |ou need |real-tim|
|00000430| 65 20 72 65 73 70 6f 6e | 73 65 20 66 72 6f 6d 20 |e respon|se from |
|00000440| 74 68 65 20 73 79 73 74 | 65 6d 20 74 68 65 6e 2c |the syst|em then,|
|00000450| 20 61 6c 6c 20 79 6f 75 | 20 68 61 76 65 20 74 6f | all you| have to|
|00000460| 20 64 6f 20 69 73 0a 20 | 3e 20 72 61 69 73 65 20 | do is. |> raise |
|00000470| 74 68 65 20 6d 6f 6e 69 | 74 6f 72 20 74 61 73 6b |the moni|tor task|
|00000480| 73 27 20 70 72 69 6f 72 | 69 74 79 20 74 6f 20 68 |s' prior|ity to h|
|00000490| 69 67 68 65 72 20 6c 65 | 76 65 6c 2e 20 75 73 65 |igher le|vel. use|
|000004a0| 20 64 6f 75 62 6c 65 2d | 62 75 66 66 65 72 69 6e | double-|bufferin|
|000004b0| 67 20 68 65 72 65 2c 0a | 20 3e 20 6f 6e 65 20 62 |g here,.| > one b|
|000004c0| 75 66 66 65 72 20 66 6f | 72 20 74 68 65 20 6d 6f |uffer fo|r the mo|
|000004d0| 6e 69 74 6f 72 20 74 61 | 73 6b 20 74 6f 20 66 69 |nitor ta|sk to fi|
|000004e0| 6c 6c 20 61 6e 64 20 74 | 68 65 20 6f 74 68 65 72 |ll and t|he other|
|000004f0| 20 62 75 66 66 65 72 20 | 66 6f 72 20 74 68 65 20 | buffer |for the |
|00000500| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 74 6f 0a 20 |applicat|ion to. |
|00000510| 3e 20 75 73 65 2e 20 75 | 73 65 20 73 65 6d 61 70 |> use. u|se semap|
|00000520| 68 6f 72 65 73 20 6f 66 | 20 63 6f 75 72 73 65 20 |hores of| course |
|00000530| 74 6f 20 6d 61 69 6e 74 | 61 69 6e 20 73 79 6e 63 |to maint|ain sync|
|00000540| 20 62 65 74 77 65 65 6e | 20 74 68 65 20 74 61 73 | between| the tas|
|00000550| 6b 73 2e 20 74 68 61 74 | 20 77 61 79 20 79 6f 75 |ks. that| way you|
|00000560| 27 6c 6c 20 61 6c 77 61 | 73 79 0a 20 3e 20 6b 65 |'ll alwa|sy. > ke|
|00000570| 65 70 20 61 6e 20 65 79 | 65 20 6f 6e 20 79 6f 75 |ep an ey|e on you|
|00000580| 72 20 64 65 76 69 63 65 | 27 73 20 69 6e 70 75 74 |r device|'s input|
|00000590| 20 61 6e 64 20 74 68 65 | 20 61 70 70 6c 69 63 61 | and the| applica|
|000005a0| 74 69 6f 6e 20 77 6f 75 | 6c 64 20 67 65 74 20 74 |tion wou|ld get t|
|000005b0| 68 65 20 64 61 74 61 20 | 6f 6e 6c 79 20 77 68 65 |he data |only whe|
|000005c0| 6e 20 69 74 27 73 0a 20 | 3e 20 72 65 61 64 79 20 |n it's. |> ready |
|000005d0| 69 6e 20 6f 6e 65 20 6f | 66 20 74 68 65 20 62 75 |in one o|f the bu|
|000005e0| 66 66 65 72 73 2e 20 75 | 73 65 20 74 68 65 20 62 |ffers. u|se the b|
|000005f0| 75 66 66 65 72 20 61 6c | 74 65 72 6e 61 74 69 76 |uffer al|ternativ|
|00000600| 6c 79 2c 20 66 69 72 73 | 74 20 6f 6e 65 20 74 68 |ly, firs|t one th|
|00000610| 65 6e 20 74 68 65 20 6f | 74 68 65 72 2e 0a 20 3e |en the o|ther.. >|
|00000620| 20 62 65 20 63 61 72 65 | 66 75 6c 20 77 68 65 6e | be care|ful when|
|00000630| 20 63 61 6c 63 75 6c 61 | 74 69 6e 67 20 74 68 65 | calcula|ting the|
|00000640| 20 62 75 66 66 65 72 20 | 73 69 7a 65 73 20 6f 74 | buffer |sizes ot|
|00000650| 68 65 72 77 69 73 65 20 | 79 6f 75 72 20 61 70 70 |herwise |your app|
|00000660| 6c 69 63 61 74 69 6f 6e | 0a 20 3e 20 6d 69 67 68 |lication|. > migh|
|00000670| 74 20 6e 6f 74 20 70 72 | 6f 63 65 73 73 20 74 68 |t not pr|ocess th|
|00000680| 65 20 64 61 74 61 20 69 | 6e 20 27 72 65 61 6c 2d |e data i|n 'real-|
|00000690| 74 69 6d 65 27 2e 0a 20 | 3e 0a 20 20 20 20 20 20 |time'.. |>. |
|000006a0| 20 20 48 6d 6d 6d 2e 2e | 2e 20 20 49 66 20 79 6f | Hmmm..|. If yo|
|000006b0| 75 27 72 65 20 77 6f 72 | 6b 69 6e 67 20 77 69 74 |u're wor|king wit|
|000006c0| 68 20 6d 75 6c 74 69 70 | 6c 65 20 62 75 66 66 65 |h multip|le buffe|
|000006d0| 72 73 20 74 68 65 6e 20 | 6d 65 73 73 61 67 65 20 |rs then |message |
|000006e0| 70 61 73 73 69 6e 67 0a | 6d 69 67 68 74 20 62 65 |passing.|might be|
|000006f0| 20 74 68 65 20 62 65 74 | 74 65 72 20 77 61 79 2e | the bet|ter way.|
|00000700| 20 20 45 61 63 68 20 74 | 69 6d 65 20 61 20 62 75 | Each t|ime a bu|
|00000710| 66 66 65 72 20 66 69 6c | 6c 73 20 79 6f 75 20 73 |ffer fil|ls you s|
|00000720| 65 6e 64 20 61 20 6d 65 | 73 73 61 67 65 20 77 69 |end a me|ssage wi|
|00000730| 74 68 20 61 0a 70 6f 69 | 6e 74 65 72 20 74 6f 20 |th a.poi|nter to |
|00000740| 74 68 65 20 62 75 66 66 | 65 72 2e 20 20 54 68 65 |the buff|er. The|
|00000750| 6e 2c 20 77 68 65 6e 20 | 74 68 65 20 62 75 66 66 |n, when |the buff|
|00000760| 65 72 20 69 73 20 65 6d | 70 74 69 65 64 2c 20 74 |er is em|ptied, t|
|00000770| 68 65 20 6f 74 68 65 72 | 20 74 61 73 6b 0a 72 65 |he other| task.re|
|00000780| 70 6c 69 65 73 20 74 6f | 20 74 68 61 74 20 6d 65 |plies to| that me|
|00000790| 73 73 61 67 65 2e 0a 0a | 20 20 20 20 20 20 20 20 |ssage...| |
|000007a0| 59 65 73 2c 20 74 68 69 | 73 20 64 6f 65 73 20 6d |Yes, thi|s does m|
|000007b0| 65 61 6e 20 61 20 64 65 | 6c 61 79 65 64 20 52 65 |ean a de|layed Re|
|000007c0| 70 6c 79 28 29 2c 20 62 | 75 74 20 74 68 61 74 20 |ply(), b|ut that |
|000007d0| 64 6f 65 73 20 6d 65 61 | 6e 20 74 68 65 20 62 75 |does mea|n the bu|
|000007e0| 66 66 65 72 0a 69 73 20 | 73 61 66 65 6c 79 20 6c |ffer.is |safely l|
|000007f0| 6f 63 6b 65 64 2e 20 20 | 49 66 20 74 68 65 20 70 |ocked. |If the p|
|00000800| 72 6f 64 75 63 65 72 20 | 74 61 73 6b 20 6e 65 65 |roducer |task nee|
|00000810| 64 73 20 61 20 6e 65 77 | 20 62 75 66 66 65 72 20 |ds a new| buffer |
|00000820| 77 68 65 6e 20 6e 6f 6e | 65 20 6f 66 20 74 68 65 |when non|e of the|
|00000830| 0a 6f 74 68 65 72 73 20 | 68 61 76 65 20 62 65 65 |.others |have bee|
|00000840| 6e 20 72 65 70 6c 69 65 | 64 20 74 6f 20 69 74 20 |n replie|d to it |
|00000850| 63 61 6e 20 64 79 6e 61 | 6d 69 63 61 6c 6c 79 20 |can dyna|mically |
|00000860| 61 6c 6c 6f 63 61 74 65 | 20 61 20 6e 65 77 20 6f |allocate| a new o|
|00000870| 6e 65 20 28 63 72 65 61 | 74 69 6e 67 0a 61 6e 6f |ne (crea|ting.ano|
|00000880| 74 68 65 72 20 6d 65 73 | 73 61 67 65 20 62 6f 64 |ther mes|sage bod|
|00000890| 79 29 2e 0a 0a 2d 2d 20 | 0a 20 3e 20 3d 3d 3d 3d |y)...-- |. > ====|
|000008a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000008b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000008c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000008d0| 3d 3d 3d 3d 3d 3d 3d 3d | 20 3c 0a 20 3e 20 20 20 |========| <. > |
|000008e0| 77 75 6c 66 72 61 65 64 | 40 6e 65 74 63 6f 6d 2e |wulfraed|@netcom.|
|000008f0| 63 6f 6d 20 20 7c 20 57 | 75 6c 66 72 61 65 64 20 |com | W|ulfraed |
|00000900| 20 44 65 6e 6e 69 73 20 | 4c 65 65 20 42 69 65 62 | Dennis |Lee Bieb|
|00000910| 65 72 20 20 4b 44 36 4d | 4f 47 20 3c 0a 20 3e 20 |er KD6M|OG <. > |
|00000920| 20 20 44 2e 42 69 65 62 | 65 72 40 47 45 6e 69 65 | D.Bieb|er@GEnie|
|00000930| 2e 63 6f 6d 20 20 20 7c | 20 20 20 20 20 20 46 75 |.com || Fu|
|00000940| 72 72 79 4d 55 43 4b 20 | 61 6e 64 20 46 75 72 54 |rryMUCK |and FurT|
|00000950| 6f 6f 6e 69 61 20 20 20 | 20 20 20 20 20 3c 0a 20 |oonia | <. |
|00000960| 3e 20 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |> ======|========|
|00000970| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000980| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000990| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 20 3c |========|====== <|
|000009a0| 0a 20 3e 20 20 20 20 20 | 20 20 20 20 20 50 47 50 |. > | PGP|
|000009b0| 20 6b 65 79 3a 20 46 69 | 6e 67 65 72 20 77 75 6c | key: Fi|nger wul|
|000009c0| 66 72 61 65 64 40 6e 65 | 74 63 6f 6d 2e 63 6f 6d |fraed@ne|tcom.com|
|000009d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000009e0| 20 3c 0a 20 3e 20 48 6f | 6d 65 20 50 61 67 65 3a | <. > Ho|me Page:|
|000009f0| 20 66 74 70 3a 2f 2f 66 | 74 70 2e 6e 65 74 63 6f | ftp://f|tp.netco|
|00000a00| 6d 2e 63 6f 6d 2f 70 75 | 62 2f 77 75 2f 77 75 6c |m.com/pu|b/wu/wul|
|00000a10| 66 72 61 65 64 2f 77 75 | 6c 66 72 61 65 64 2e 68 |fraed/wu|lfraed.h|
|00000a20| 74 6d 20 3c 0a | |tm <. | |
+--------+-------------------------+-------------------------+--------+--------+